import 'package:flutter/material.dart';

import 'package:ilive_ihome/layout/main.dart' as view;
import 'package:ilive_ihome/layout/device/add.dart' as view;
import 'package:ilive_ihome/layout/device/eq/ble_io.dart' as view;
import 'package:ilive_ihome/layout/device/setting.dart' as view;

class Router {
  const Router({@required this.routeName, @required this.builder})
      : assert(routeName != null),
        assert(builder != null);

  final String routeName;
  final WidgetBuilder builder;
}

List<Router> routers = <Router>[
  Router(
    routeName: '/root',
    builder: (BuildContext context) => view.MainUI(),
  ),
  Router(
    routeName: view.DevAdd.routeName,
    builder: (BuildContext context) => view.DevAdd(),
  ),
  Router(
    routeName: view.DevAddSetting.routeName,
    builder: (BuildContext context) => view.DevAddSetting(),
  ),
];
